#include #include #if !defined(__WIN32__) extern "C" { #endif #include #if !defined(__WIN32__) } #endif int*** matrix3d(int h, int w, int d, int x=0) { // this function allocates an // h x w x d three dimensional matrix // and initializes the slots with x int*** a = new int**[h]; for(int i=0; i "; cout.flush(); cin >> buffer; int n = strlen(buffer); char* nb = new char[n+1]; // why do I need + 1?? for(int i=0; i